import request from '@/config/axios'
import type { AppParameterValue } from './types'

export const getAppParameterValuesListApi = (params: any): Promise<IResponse> => {
  return request.get({ url: '/app-parameter-values', params })
}

export const updateAppParameterValuesApi = (
  id: string,
  data: Partial<AppParameterValue>
): Promise<IResponse> => {
  return request.put({ url: `/app-parameter-values/id/${id}`, data })
}

export const getAppParameterValuesDetailApi = (
  id: string
): Promise<IResponse<AppParameterValue>> => {
  return request.get({ url: `/app-parameter-values/id/${id}` })
}
